home *** CD-ROM | disk | FTP | other *** search
-
- toolbox/src/exampleCode/opengl/lmwrap README
-
-
- LMWRAP
- ------
-
- This module's purpose is to enable porting IrisGL's lmdef() and lmbind()
- calls to OpenGL.
-
- Directories igl and ogl contain the IrisGL and OpenGL versions of the
- same (simple lighting) program. Both programs use the same sequence
- of lmdef() and lmbind() calls.
-
- For igl, these are native GL calls whereas for ogl, these are defined
- locally in the wrapper layer.
-
- ogl/lmwrap.h and ogl/lmwrap.c comprises of the wrapper layer for
- lighting calls.
-
- ogl/lmOGL and igl/lmIGL show how to use this layer for getting
- similar results.
-
- Notes:
-
- 1) The sphere gets clipped intentionally to show two sided lighting.
-
- 2) Some advanced lighting features (e.g 2 sided lights, spot lights,
- attentuation ) were not supported on all platforms for IrisGL. So
- you may not see same results in the 2 sample programs on low end
- machines.
-
- --
-
- Yusuf Attarwala
- yusuf@sgi.com
- April, 1995
-
-